Blockchain-based advertisement monitoring method and apparatus, and electronic device

ABSTRACT

The specification discloses a blockchain-based advertisement monitoring method and apparatus, and an electronic device. The method may include: obtaining blockchain verification information of a target advertisement from a blockchain, the blockchain verification information comprising identification information of a playing device of the target advertisement, a first signature associated with a screenshot image of the target advertisement, and a second signature associated with the identification information of the playing device; decrypting the first signature and the second signature based on a public key of the playing device to obtain a to-be-verified screenshot information and a to-be-verified identification information, respectively; verifying the to-be-verified identification information against the identification information of the playing device; and after the to-be-verified identification information is verified: obtaining an advertisement resource corresponding to the identification information of the playing device; and verifying the to-be-verified screenshot information against the obtained advertisement resource.

CROSS REFERENCE TO RELATED APPLICATIONS

The application is a continuation application of International PatentApplication No. PCT/CN2020/071362, filed on Jan. 10, 2020, which claimspriority to Chinese Patent Application No. 201910329974.7, filed on Apr.23, 2019. The entire content of the above referenced applications areincorporated herein by reference.

TECHNICAL FIELD

The application relates to the field of computer technologies, and inparticular, to a blockchain-based advertisement monitoring method andapparatus, and an electronic device.

BACKGROUND

Currently, in order to improve effects of advertisements, advertisersincreasingly choose to place offline electronic advertisements onadvertisement playing devices in public areas such as buildings,elevators, cinemas, communities, and bus stops. In order to learn aplacing status of electronic advertisements on the advertisement playingdevices in a timely manner to determine whether unexpected cases such aswrong placement and abnormal playing of the electronic advertisementsoccur, an advertisement placing party usually needs to send manpower toan advertisement playing site to view an actual placing status of theelectronic advertisements.

However, there are various disadvantages by monitoring an advertisementplacing status at a playing site using manpower. On the one hand,obtained playing evidences are often manually taken photographs that arelikely to be tampered with, and therefore authenticity of thephotographs cannot be ensured, and manual costs are relatively high andmonitoring efficiency is also relatively low. On the other hand, in themanual manner, an error is unavoidable, and accurate advertisementplaying data cannot be provided. Therefore, it is difficult to rely onthe manual monitoring to optimize a placing effect of offline electronicadvertisements.

Reducing manual costs for monitoring a placing status of the offlineelectronic advertisements and improving efficiency and accuracy ofmonitoring advertisement playing become a technical problem urgently tobe resolved.

SUMMARY

Embodiments of the specification provide a blockchain-basedadvertisement monitoring method and apparatus, and an electronic device,to resolve existing problems such as relatively high manual costs formonitoring a placing status of offline electronic advertisements andrelatively low efficiency and relatively low accuracy of monitoring ofadvertisement playing.

In order to resolve the foregoing technical problems, the embodiments ofthe specification are implemented as follows.

In a first aspect, a blockchain-based advertisement monitoring method isprovided. The method is applied to an advertisement monitoring apparatusand includes: obtaining blockchain verification information of a targetadvertisement from a blockchain, the blockchain verification informationcomprising identification information of a playing device of the targetadvertisement, a first signature associated with a screenshot image ofthe target advertisement being played on the playing device, and asecond signature associated with the identification information of theplaying device, wherein the first signature and the second signature aresigned by the playing device; decrypting the first signature and thesecond signature based on a public key of the playing device to obtain ato-be-verified screenshot information and a to-be-verifiedidentification information, respectively; verifying the to-be-verifiedidentification information against the identification information of theplaying device; and after the to-be-verified identification informationis verified: obtaining an advertisement resource corresponding to theidentification information of the playing device; and verifying theto-be-verified screenshot information against the obtained advertisementresource.

In some embodiments, the first signature comprises a signed version of adigest of the screenshot image of the target advertisement, wherein thedigest is generated by applying an image hash algorithm to thescreenshot image, and the digest is signed with a private key of theplaying device.

In some embodiments, first signature comprises a signed version of adigest generated by applying a hash algorithm to the followinginformation: the screenshot image of the target advertisement and theidentification information of the playing device; and the digest issigned with a private key of the playing device.

In some embodiments, the first signature comprises a signed version of adigest generated by applying a hash algorithm to the followinginformation: the screenshot image of the target advertisement, theidentification of the playing device, and a timestamp of the screenshotimage; the digest is signed with a private key of the playing device,and the blockchain verification information further comprises thetimestamp of the screenshot image.

In some embodiments, the obtaining an advertisement resourcecorresponding to the identification information of the playing devicecomprises: obtaining, based on the identification information of theplaying device, the advertisement resource from a cloud platform storinga mapping between the target advertisement and the identificationinformation of the playing device; and storing the obtainedadvertisement resource in a local storage space.

In some embodiments, the blockchain verification information furthercomprises a length-width dimension of the screenshot image, and a thirdsignature of the length-width dimension.

In some embodiments, before the obtaining an advertisement resourcecorresponding to the identification information of the playing device,the method further comprises: decrypting the third signature based on apublic key of the playing device to obtain a to-be-verified length-widthdimension; and verifying if the length-width dimension matches theto-be-verified length-width dimension.

In some embodiments, the to-be-verified screenshot information comprisesa digest of a length-width dimension of the screenshot image of thetarget advertisement.

In some embodiments, the verifying the to-be-verified screenshotinformation against the obtained advertisement resource comprises:playing the advertisement; obtaining, at an every preset time interval,a played image of the advertisement resource to obtain one or moreto-be-matched played images; obtaining one or more to-be-matched digestscorresponding to the one or more to-be-matched played images; and if thedigest of the screenshot image of the target advertisement matches oneof the one or more to-be-matched digests, determining that theto-be-verified screenshot information matches the obtained advertisementresource.

In a second aspect, a system for blockchain-based advertisementmonitoring is described. The system comprises one or more processors andone or more non-transitory computer-readable memories coupled to the oneor more processors and configured with instructions executable by theone or more processors to cause the system to perform operationscomprising: obtaining blockchain verification information of a targetadvertisement from a blockchain, the blockchain verification informationcomprising identification information of a playing device of the targetadvertisement, a first signature associated with a screenshot image ofthe target advertisement being played on the playing device, and asecond signature associated with the identification information of theplaying device, wherein the first signature and the second signature aresigned by the playing device; decrypting the first signature and thesecond signature based on a public key of the playing device to obtain ato-be-verified screenshot information and a to-be-verifiedidentification information, respectively; verifying the to-be-verifiedidentification information against the identification information of theplaying device; and after the to-be-verified identification informationis verified: obtaining an advertisement resource corresponding to theidentification information of the playing device; and verifying theto-be-verified screenshot information against the obtained advertisementresource.

In a third aspect, a non-transitory computer-readable storage medium forblockchain-based advertisement monitoring is configured withinstructions executable by one or more processors to cause the one ormore processors to perform operations comprising: obtaining blockchainverification information of a target advertisement from a blockchain,the blockchain verification information comprising identificationinformation of a playing device of the target advertisement, a firstsignature associated with a screenshot image of the target advertisementbeing played on the playing device, and a second signature associatedwith the identification information of the playing device, wherein thefirst signature and the second signature are signed by the playingdevice; decrypting the first signature and the second signature based ona public key of the playing device to obtain a to-be-verified screenshotinformation and a to-be-verified identification information,respectively; verifying the to-be-verified identification informationagainst the identification information of the playing device; and afterthe to-be-verified identification information is verified: obtaining anadvertisement resource corresponding to the identification informationof the playing device; and verifying the to-be-verified screenshotinformation against the obtained advertisement resource.

The foregoing technical solutions used in the embodiments of thespecification can achieve at least the following technical effects.

During monitoring of an advertisement played on an offline electronicdisplay screen, the screenshot image of the target advertisement and theidentification information of the playing device may be obtained. Thecorresponding blockchain verification information may be generated basedon the screenshot image and the identification information of theplaying device. The blockchain verification information may be used forverifying the screenshot image and the identification information. Thenthe blockchain verification information is uploaded to the blockchain.Based on a non-tamperable feature of the information recorded in theblockchain, the screenshot image of the target advertisement and theidentification information of the playing device are uploaded to theblockchain. On the one hand, human resources required for advertisementmonitoring are saved and efficiency is improved. On the other hand, itis ensured that the playing status of the advertisement is authentic andeffective.

When the verification node in the blockchain verifies the playing statusof the target advertisement, the blockchain verification information ofthe target advertisement may be obtained from a blockchain. Theblockchain verification information includes the identificationinformation of the playing device. Then the advertisement resourcecorresponding to the identification information of the playing devicemay be obtained. Finally, the playing status of the target advertisementmay be verified based on the blockchain verification information and theadvertisement resource corresponding to the identification informationof the playing device. Based on the non-tamperable feature of theinformation recorded in the blockchain, the verification node obtainsthe blockchain verification information of the target advertisement fromthe blockchain and verifies the playing status based on the blockchainverification information of the target advertisement. On the one hand,workload of manually verifying the playing status of the targetadvertisement is reduced and efficiency is improved. On the other hand,it is ensured that the playing status of the advertisement determined bythe verification node is authentic and effective.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings described herein are used for providingfurther understanding for this application and constitute a part of thisapplication. Exemplary embodiments of this application and descriptionsthereof are used for explaining this application and do not constitutean improper limitation to this application. In the figures:

FIG. 1 is a schematic flowchart of implementation in which ablockchain-based advertisement monitoring method is applied to anadvertisement monitoring apparatus, according to an embodiment of thepresent specification.

FIG. 2 is a schematic diagram of application of a blockchain-basedadvertisement monitoring method to an actual scenario, according to anembodiment of the present specification.

FIG. 3 is a schematic flowchart of implementation in which ablockchain-based advertisement monitoring method is applied to averification node in a blockchain, according to an embodiment of thepresent specification.

FIG. 4 is a schematic structural diagram of a blockchain-basedadvertisement monitoring apparatus, according to an embodiment of thepresent specification.

FIG. 5 is a schematic structural diagram of a verification node in ablockchain, according to an embodiment of the present specification.

FIG. 6 is a schematic structural diagram of an electronic device,according to an embodiment of the present specification.

FIG. 7 is a schematic structural diagram of another electronic device,according to an embodiment of the present specification.

DETAILED DESCRIPTION OF THE INVENTION

To make the objectives, technical solutions, and advantages of thisapplication clearer, the following clearly and completely describes thetechnical solutions of this application with reference to specificembodiments of this application and the corresponding accompanyingdrawings. Apparently, the described embodiments are only someembodiments rather than all the embodiments of this application. Allother embodiments obtained by a person of ordinary skill in the artbased on the embodiments of this application without creative effortsshall fall within the protection scope of this application.

The technical solution provided by various embodiments of thisapplication will be described in detail below with reference to theaccompanying drawings.

In order to resolve existing problems such as relatively high manualcosts for monitoring a placing status of offline electronicadvertisements and relatively low efficiency and relatively low accuracyof monitoring of advertisement playing, the embodiments of the presentspecification provide a blockchain-based advertisement monitoringmethod. The method provided in the embodiments of the presentspecification may be implemented by, but not limited to, at least onetype of apparatuses, such as an advertisement monitoring apparatus andthe like.

For ease of description, an implementation of the method is describedbelow using an advertisement monitoring apparatus as an example. Theadvertisement monitoring apparatus is merely an example and should notbe understood as a limitation to the method.

In particular, FIG. 1 is a schematic flowchart of implementation of ablockchain-based advertisement monitoring method according to one ormore embodiments of the present specification. The method includes thefollowing steps.

Step 110: A screenshot image of a target advertisement being played by aplaying device and identification information of the playing device areobtained.

In order to obtain, in real time, the screenshot image, a monitoringapplication may be built in the playing device. A timing screenshotfunction may be set in the monitoring application, that is, a screenshotoperation may be performed on a played image on the playing device atevery preset time interval.

Step 120: Blockchain verification information is generated based on thescreenshot image and the identification information.

In some embodiments, because each block in the blockchain has a limitedstorage space, and therefore is generally not suitable to storeexcessive data. In this case, information such as an original screenshotimage may be encrypted using a digest algorithm to obtain a digest ofthe original information, and then the digest of the originalinformation is uploaded to the blockchain. In this case, generatingblockchain verification information based on the screenshot image andthe identification information: obtaining a digest of the screenshotimage; obtaining a first signature for the digest of the screenshotimage and a second signature for the identification information of theplaying device; and generating the blockchain verification informationbased on the first signature, the second signature, and theidentification information of the playing device.

In some embodiments, the digest of the screenshot image may be obtainedusing an image hash algorithm, for example, phash and dhash.

In some embodiments, the screenshot image and the identificationinformation of the playing device may be further combined, and a digestof combined information may be obtained by applying a hash algorithm tothe combined information. Here, “combining” may mean “being aggregated.”In this case, generating blockchain verification information based onthe screenshot image and the identification information of the playingdevice, the blockchain verification information being content forverifying the screenshot image and the identification information of theplaying device includes: obtaining a digest of the screenshot image andthe identification information of the playing device; obtaining a thirdsignature of the playing device for the digest of the screenshot imageand the identification information of the playing device and a secondsignature of the playing device for the identification information ofthe playing device; and generating the blockchain verificationinformation based on the third signature, the second signature, and theidentification information of the playing device.

In some embodiments, the screenshot image, the identificationinformation of the playing device, and a timestamp of a screenshot timemay be further combined, and a digest of combined information isobtained by applying a hash algorithm to the combined information. Theblockchain verification information is generated based on the digest ofthe combined information, the second signature of the playing device forthe identification information of the playing device, and the timestampof the screenshot time.

The first signature, the second signature, and the third signature maybe obtained through signing using a private key of the playing device.For example, the digest of the screenshot image×the private key=thefirst signature, the identification information of the playingdevice×the private key=the second signature, and the digest of (thescreenshot image of the playing device+the identification information ofthe playing device)×the private key=the third signature.

In some embodiments, in order to help search for the data uploaded tothe blockchain, after the blockchain verification information isuploaded to the blockchain, the method further includes: obtaining ablock address returned by the blockchain, the block addresscorresponding to a block storing the blockchain verificationinformation.

Step 130: The blockchain verification information is uploaded to theblockchain.

Due to a storage mechanism of the blockchain, data in the blockchain ishardly tampered with. Based on the feature of the blockchain, it iscredible that the data stored in the blockchain is non-tamperable. Inthis case, after the blockchain verification information is uploaded tothe blockchain, the blockchain verification information may be preventedfrom being maliciously tampered with, and it is ensured that theverification node in the blockchain can verify, based on the blockchainverification information, a true playing status of the playing device.

The implementation of the blockchain-based advertisement monitoringmethod provided in the embodiments of the present specification isdescribed in detail below using a schematic diagram of an actualscenario shown in FIG. 2 as an example. The implementation includes thefollowing steps.

S21: An advertiser provides an advertisement multimedia resource to anadvertisement-placing cloud platform.

S22: A local advertisement playing device obtains the advertisementmultimedia resource from the advertisement-placing cloud platform andcaches the advertisement multimedia resource in a local storage space.The advertisement-placing cloud platform stores a device identifier (ID)of the local advertisement playing device obtaining the advertisementmultimedia resource. That is, the cloud platform storing acorrespondence between the advertisement multimedia resource and thelocal advertisement playing device.

S23: A monitoring application is built in the local advertisementplaying device, where the monitoring application obtains one or morescreenshot images of the advertisement multimedia resource played by thelocal advertisement playing device. For example, a screenshot image ofthe advertisement multimedia resource played by the local advertisementplaying device may be obtained at every preset time interval. Forsimplicity, the following discussion uses one screenshot image as anexample. It may be obvious for a person in the art to expand the methodby using a plurality of screenshot images.

S24: The monitoring application built in the local advertisement playingdevice may respectively perform signing on a hash value of thescreenshot image, the device ID, and a length-width dimension of thescreenshot image using a private key stored in SecurityKey, to ensurethat the blockchain verification information uploaded to the blockchainis confirmed by the local advertisement playing device.

S25: The monitoring application built in the local advertisement playingdevice uploads signature information such as a first signature of digestinformation of the screenshot image, a second signature of the deviceID, and a third signature of the length-width dimension of thescreenshot image, the device ID, and the length-width dimension of thescreenshot image to the blockchain through a preset interface providedby the blockchain. The uploaded signatures information, the device ID,and the length-width dimension of the screenshot image may be referredto as the blockchain verification information.

S26: A verification proxy server (that is, a verification node) in theblockchain obtains the blockchain verification information comprising,for example, the first signature, the second signature, the thirdsignature, and the device ID, from the blockchain.

S27: The verification proxy server obtains to-be-verified digestinformation of the screenshot image corresponding to the firstsignature, a to-be-verified device ID corresponding to the secondsignature, and a to-be-verified length-width dimension of the screenshotimage corresponding to the third signature based on a public keycorresponding to the device ID.

S28: The verification proxy server obtains the advertisement multimediaresource corresponding to the device ID (device ID is stored in theblockchain verification information) from the advertisement-placingcloud platform after determining that the to-be-verified device ID isconsistent with the device ID and that the to-be-verified length-widthdimension of the screenshot image is consistent with the length-widthdimension of the screenshot image.

S29: The verification proxy server performs a simulation playingoperation on the advertisement multimedia resource corresponding to thedevice ID, to obtain each image of the advertisement multimedia resourcecorresponding to the device ID and calculate digest information of eachimage.

S210: Fuzzy matching is performed between the to-be-verified digestinformation of the screenshot image and the digest information of theeach image obtained in S29. If the to-be-verified digest informationmatches the digest information of one of the images obtained in S29, itis determined that the advertisement multimedia resource correspondingto the device ID is played on the local advertisement playing device,that is, verification succeeds.

During monitoring of an advertisement played on an offline electronicdisplay screen, the screenshot image of the target advertisement beingplayed on the playing device and the identification information of theplaying device may be obtained, and the blockchain verificationinformation is generated based on the screenshot image and theidentification information of the playing device. The blockchainverification information is content for verifying the screenshot imageand the identification information. Then the blockchain verificationinformation is uploaded to the blockchain. Based on a non-tamperablefeature of the information recorded in the blockchain, the screenshotimage existing when the playing device plays the target advertisementand the identification information of the playing device are uploaded tothe blockchain. On the one hand, a lot of human resources required foradvertisement monitoring are saved and efficiency is accordinglyimproved. On the other hand, it is ensured that the playing status ofthe advertisement is authentic and effective.

FIG. 3 is a schematic flowchart of implementation in which ablockchain-based advertisement monitoring method is applied to averification node in a blockchain, according to an embodiment of thepresent specification. The implementation includes the following steps.

Step 310: Blockchain verification information of a target advertisementis obtained from a blockchain, the blockchain verification informationincluding identification information of a playing device of the targetadvertisement.

In some embodiments, the blockchain verification information may includethe identification information of the playing device. The verificationnode may obtain, based on the identification information of the playingdevice, an advertisement multimedia resource corresponding to theidentification information of the playing device from anadvertisement-placing cloud platform storing the multimedia resource ofthe target advertisement.

In some embodiments, the blockchain verification information may furtherinclude related information of a screenshot image of the targetadvertisement being played on the playing device. The verification nodemay verify, based on the related information of the screenshot image andthe advertisement multimedia resource corresponding to theidentification information of the playing device, a status of playing bythe playing device.

Step 320: An advertisement resource corresponding to the identificationinformation of the playing device is obtained. In some embodiments, inorder to determine whether the target advertisement is played on theplaying device, the advertisement resource corresponding to theidentification information of the playing device may be obtained from anadvertiser or an advertisement-placing cloud platform, to determinewhether related information of the screenshot image included in theblockchain verification information matches the related information of ascreenshot image when the target advertisement is played.

Step 330: A status of playing of the target advertisement by the playingdevice is verified based on the blockchain verification information andthe advertisement resource corresponding to the identificationinformation of the playing device.

In some embodiments, the blockchain verification information includes afirst signature of the playing device for a digest of a screenshot imageof the target advertisement, a second signature of the playing devicefor the identification information of the playing device, and theidentification information of the playing device. In this case,verifying a status of playing of the target advertisement by the playingdevice based on the blockchain verification information and theadvertisement resource corresponding to the identification informationof the playing device includes: obtaining a public key corresponding tothe identification information of the playing device, the public keybeing used to decrypt the first signature and the second signature; andverifying, based on the public key, the first signature, the secondsignature, the identification information of the playing device, and theadvertisement resource corresponding to the identification informationof the playing device, the status of playing of the target advertisementby the playing device.

In some embodiments, the blockchain verification information includes athird signature of the playing device comprising a signed digest of ascreenshot image of the target advertisement and the identificationinformation, a second signature of the playing device comprising asigned version of the identification information, and the identificationinformation (e.g., plaintext). In this case, verifying a status ofplaying of the target advertisement by the playing device based on theblockchain verification information and the advertisement resourcecorresponding to the identification information of the playing deviceincludes: obtaining a public key corresponding to the identificationinformation of the playing device, the public key being used to decryptthe third signature and the second signature; and verifying, based onthe public key, the third signature, the second signature, theidentification information of the playing device, and the advertisementresource corresponding to the identification information of the playingdevice, the status of playing of the target advertisement by the playingdevice.

In some embodiments, the verifying, based on the public key, the firstsignature, the second signature, the identification information of theplaying device, and the advertisement resource corresponding to theidentification information of the playing device, the status of playingof the target advertisement by the playing device includes: obtaining,based on the public key, digest information of a to-be-verifiedadvertisement screenshot obtained after the first signature is decryptedand to-be-verified device identification information obtained after thesecond signature is decrypted; and if the to-be-verified deviceidentification information is consistent with the identificationinformation of the playing device, verifying, based on the advertisementresource corresponding to the identification information of the playingdevice and the digest information of the to-be-verified advertisementscreenshot, the status of playing of the target advertisement by theplaying device.

In some embodiments, the verifying, based on the public key, the thirdsignature, the second signature, the identification information of theplaying device, and the advertisement resource corresponding to theidentification information of the playing device, the status of playingof the target advertisement by the playing device includes: obtaining,based on the public key, digest information of a to-be-verifiedadvertisement screenshot and identification information obtained afterthe third signature is decrypted and to-be-verified deviceidentification information obtained after the second signature isdecrypted; and if the to-be-verified device identification informationis consistent with the identification information of the playing device,verifying, based on the advertisement resource corresponding to theidentification information of the playing device and the digestinformation of the to-be-verified advertisement screenshot andidentification information, the status of playing of the targetadvertisement by the playing device.

The digest information of the to-be-verified advertisement screenshotobtained after the first signature is decrypted may be denoted as thefirst signature÷the public key, the digest information of theto-be-verified advertisement screenshot and identification informationobtained after the third signature is decrypted may be denoted as thethird signature÷the public key, and the to-be-verified deviceidentification information obtained after the second signature isdecrypted may be denoted as the second signature÷the public key.

In some embodiments, the verifying, based on the advertisement resourcecorresponding to the identification information of the playing deviceand the digest information of the to-be-verified advertisementscreenshot and identification information, the status of playing of thetarget advertisement by the playing device includes: playing theadvertisement resource corresponding to the identification informationof the playing device and obtaining, at an every preset time interval, aplayed image of the advertisement resource to obtain one or moreto-be-matched played images; obtaining one or more to-be-matched digestscorresponding to the one or more to-be-matched played images; and if thedigest information of the to-be-verified advertisement screenshotmatches one of the digests of the to-be-matched played images,determining that the target advertisement is played on the playingdevice.

In some embodiments, each played image of the advertisement resourcecorresponding to the identification information of the playing devicemay be obtained, and fuzzy matching is performed, through searching,between a digest of a to-be-matched played image and a digest of eachplayed image of the advertisement resource, to determine whether thedigest of the to-be-matched played image matches one of the digests ofthe played images of the advertisement resource, and if so, determinethat the target advertisement is played on the playing device.

When the verification node in the blockchain verifies the playing statusof the target advertisement, the blockchain verification information ofthe target advertisement may be obtained from a blockchain. Theblockchain verification information includes the identificationinformation of the playing device. Then the advertisement resourcecorresponding to the identification information of the playing device isobtained. Finally, the playing status of the target advertisement may beverified based on the blockchain verification information and theadvertisement resource corresponding to the identification informationof the playing device. Based on the non-tamperable feature of theinformation recorded in the blockchain, the verification node obtainsthe blockchain verification information of the target advertisement fromthe blockchain and verifies the playing status based on the blockchainverification information of the target advertisement. On the one hand,workload of manually verifying the playing status of the targetadvertisement is reduced and efficiency is accordingly improved. On theother hand, it is ensured that the playing status of the advertisementdetermined by the verification node is authentic and effective.

FIG. 4 is a schematic structural diagram of a blockchain-basedadvertisement monitoring apparatus 400, according to the presentspecification. Referring to FIG. 4, in a software implementation, theblockchain-based advertisement monitoring apparatus 400 may include anobtaining unit 401, a generating unit 402, and an uploading unit 403.

The obtaining unit 401 is configured to obtain a screenshot image of atarget advertisement being played by a playing device and identificationinformation of the playing device.

The generating unit 402 is configured to generate blockchainverification information based on the screenshot image and theidentification information of the playing device, the blockchainverification information being content for verifying the screenshotimage and the identification information.

The uploading unit 403 is configured to upload the blockchainverification information to a blockchain.

In some embodiments, the generating unit 402 is configured to: obtain adigest of the screenshot image; obtain a first signature of the playingdevice comprising the digest of the screenshot image and a secondsignature of the playing device comprising the identificationinformation of the playing device; and generate the blockchainverification information based on the first signature, the secondsignature, and the identification information of the playing device.

In some embodiments, the generating unit 402 is configured to: obtain adigest of the screenshot image and the identification information of theplaying device; obtain a third signature of the playing device for thedigest of the screenshot image and the identification information of theplaying device and a second signature of the playing device for theidentification information of the playing device; and generate theblockchain verification information based on the third signature, thesecond signature, and the identification information of the playingdevice.

In some embodiments, after the loading unit 403 uploads the blockchainverification information to the blockchain, the apparatus furtherincludes: an address obtaining unit 404 configured to obtain a blockaddress returned by the blockchain, a block corresponding to the blockaddress being used to store the blockchain verification information.

The blockchain-based advertisement monitoring apparatus 400 canimplement the method in the method embodiments of the FIG. 1 to FIG. 2.For details, refer to the blockchain-based advertisement monitoringmethod in the embodiments shown in FIG. 1 to FIG. 2, and the details arenot described herein again.

FIG. 5 is a schematic structural diagram of a verification node 500 in ablockchain, according to the present specification. Referring to FIG. 5,in a software implementation, the verification node 500 in theblockchain may include a first obtaining unit 501, a second obtainingunit 502, and a verifying unit 503.

The first obtaining unit 501 is configured to obtain blockchainverification information of a target advertisement from a blockchain,the blockchain verification information including identificationinformation of a playing device of the target advertisement.

The second obtaining unit 502 is configured to obtain an advertisementresource corresponding to the identification information of the playingdevice.

The verifying unit 503 is configured to verify, based on the blockchainverification information and the advertisement resource corresponding tothe identification information of the playing device, a status ofplaying of the target advertisement by the playing device

In some embodiments, the blockchain verification information includes afirst signature of the playing device for a digest of a screenshot imageof the target advertisement, a second signature of the playing devicefor the identification information of the playing device, and theidentification information of the playing device. In this case, theverifying unit 503 is configured to: obtain a public key correspondingto the identification information of the playing device, the public keybeing used to decrypt the first signature and the second signature; andverify, based on the public key, the first signature, the secondsignature, the identification information of the playing device, and theadvertisement resource corresponding to the identification informationof the playing device, the status of playing of the target advertisementby the playing device of the target.

In some embodiments, the blockchain verification information includes athird signature of the playing device for a digest of a screenshot imageof the target advertisement and the identification information, a secondsignature of the playing device for the identification information, andthe identification information. In this case, the verifying unit 503 isconfigured to: obtain a public key corresponding to the identificationinformation of the playing device, the public key being used to decryptthe third signature and the second signature; and verify, based on thepublic key, the third signature, the second signature, theidentification information of the playing device, and the advertisementresource corresponding to the identification information of the playingdevice, the status of playing of the target advertisement by the playingdevice.

In some embodiments, the verifying unit 503 is configured to: obtain,based on the public key, the first signature, and the second signature,digest information of a to-be-verified advertisement screenshot existingafter the first signature is decrypted and to-be-verified deviceidentification information existing after the second signature isdecrypted; and if the to-be-verified device identification informationis consistent with the identification information of the playing device,verify, based on the advertisement resource corresponding to theidentification information of the playing device and the digestinformation of the to-be-verified advertisement screenshot digestinformation, the status of playing of the target advertisement by theplaying device.

In some embodiments, the verifying unit 503 is configured to: obtain,based on the public key, the third signature, and the second signature,digest information of a to-be-verified advertisement screenshot andidentification information existing after the third signature isdecrypted and to-be-verified device identification information existingafter the second signature is decrypted; and if the to-be-verifieddevice identification information is consistent with the identificationinformation of the playing device, verify, based on the advertisementresource corresponding to the identification information of the playingdevice and the digest information of the to-be-verified advertisementscreenshot and identification information, the status of playing of thetarget advertisement by the playing device.

In some embodiments, the verifying unit 503 is configured to: play theadvertisement resource corresponding to the identification informationof the playing device and obtain, at an every preset time interval, aplayed image of the advertisement resource to obtain one or moreto-be-matched played images; obtaining one or more to-be-matched digestscorresponding to the one or more to-be-matched played images; and if thedigest information of the to-be-verified advertisement screenshotmatches one of the digests of the to-be-matched played images, determinethat the target advertisement is played on the playing device.

The verification node 500 in the blockchain can implement the method inthe method embodiment in the FIG. 3. For details, refer to theblockchain-based advertisement monitoring method in the embodiment shownin FIG. 3, and the details are not described herein again.

FIG. 6 is a schematic structural diagram of an electronic deviceaccording to an embodiment of this specification. Referring to FIG. 6,at the hardware level, the electronic device includes a processor, andin some embodiments, includes an internal bus, a network interface, anda memory. The memory may include a random-access memory (RAM), or mayfurther include a non-volatile memory, for example, at least onemagnetic disk memory. Certainly, the electronic device may furtherinclude hardware required for other services.

The processor, the network interface, and the memory may be connected toeach other through the internal bus. The internal bus may be an industrystandard architecture (ISA) bus, a peripheral component interconnect(PCI) bus, or an extended industry standard architecture (EISA) bus. Thebus may be classified into an address bus, a data bus, a control bus,and the like. For ease of illustration, in FIG. 6, the bus isrepresented by using only one double-sided arrow. This, however, doesnot indicate that there is only one bus or only one type of bus.

The memory is configured to store a program. Specifically, the programmay include program code, where the program code includes a computeroperation instruction. The memory may include an internal memory and anon-volatile memory, and provide instructions and data to the processor.

The processor reads a corresponding computer program from thenon-volatile memory into the memory and then executes the computerprogram, to form a blockchain-based advertisement monitoring apparatusat the logic level. The processor executes the program stored in thememory and is configured to perform the following operations: obtaininga screenshot image of a target advertisement being played by a playingdevice and identification information of the playing device; generatingblockchain verification information based on the screenshot image andthe identification information, the blockchain verification informationbeing content for verifying the screenshot image and the identificationinformation; and uploading the blockchain verification information to ablockchain.

The foregoing blockchain-based advertisement monitoring method disclosedin the embodiments shown in FIG. 1 and FIG. 2 of this specification maybe applied to a processor or implemented by a processor. The processormay be an integrated circuit chip and has a signal processingcapability. In an implementation process, steps of the foregoing methodmay be implemented by using a hardware integrated logic circuit in theprocessor or instructions in a form of software. The processor may be ageneral processor, including a central processing unit (CPU), a networkprocessor (NP), and the like; or may further be a digital signalprocessor (DSP), an application-specific integrated circuit (ASIC), afield programmable gate array (FPGA), or another programmable logicaldevice, discrete gate or transistor logical device, or discrete hardwarecomponent. The processor can implement or execute each method, step, andlogic block diagram disclosed in one or more embodiments in thespecification. The general-purpose processor may be a microprocessor, orthe processor may be any conventional processor or the like. Steps ofthe method disclosed with reference to one or more embodiments in thespecification may be directly implemented by a hardware decodingprocessor, or implemented by a combination of hardware in the decodingprocessor and a software module. The software module may be located in amature storage medium in the art, such as a RAM, a flash memory, a ROM,a programmable ROM, an electrically erasable programmable memory, or aregister. The storage medium is located in the memory, and the processorreads information in the memory and completes the steps in the foregoingmethods in combination with hardware of the processor.

The electronic device may further perform the blockchain-basedadvertisement monitoring method shown in FIG. 1 and FIG. 2, and this isnot described in the specification again.

In addition to a software implementation, the electronic device in thespecification does not exclude other implementations, for example, alogic device or a combination of software and hardware. In other words,an entity executing the following processing procedure is not limited tothe logic units, and may also be hardware or logic devices.

FIG. 7 is a schematic structural diagram of an electronic deviceaccording to an embodiment of this specification. Referring to FIG. 7,at the hardware level, the electronic device includes a processor, andin some embodiments, includes an internal bus, a network interface, anda memory. The memory may include a memory, for example, a random-accessmemory (RAM), or may further include a non-volatile memory, for example,at least one magnetic disk memory. Certainly, the electronic device mayfurther include hardware required for other services.

The processor, the network interface, and the memory may be connected toeach other through the internal bus. The internal bus may be an industrystandard architecture (ISA) bus, a peripheral component interconnect(PCI) bus, or an extended industry standard architecture (EISA) bus. Thebus may be classified into an address bus, a data bus, a control bus,and the like. For ease of illustration, in FIG. 7, the bus isrepresented by using only one double-sided arrow. This, however, doesnot indicate that there is only one bus or only one type of bus.

The memory is configured to store a program. Specifically, the programmay include program code, where the program code includes a computeroperation instruction. The memory may include an internal memory and anon-volatile memory, and provide instructions and data to the processor.

The processor reads a corresponding computer program from thenon-volatile memory into the memory and then executes the computerprogram, to form a verification node in a blockchain at the logic level.The processor executes the program stored in the memory and isspecifically configured to perform the following operations: obtainingblockchain verification information of a target advertisement from ablockchain, the blockchain verification information includingidentification information of a playing device of the targetadvertisement; obtaining an advertisement resource corresponding to theidentification information of the playing device; and verifying, basedon the blockchain verification information and the advertisementresource corresponding to the identification information of the playingdevice, a status of playing of the target advertisement by the playingdevice.

The foregoing blockchain-based advertisement monitoring method disclosedin the embodiments shown in FIG. 3 of this specification may be appliedto a processor or implemented by a processor. The processor may be anintegrated circuit chip and has a signal processing capability. In animplementation process, steps of the foregoing method may be implementedby using a hardware integrated logic circuit in the processor orinstructions in a form of software. The processor may be a generalprocessor, including a central processing unit (CPU), a networkprocessor (NP), and the like; or may further be a digital signalprocessor (DSP), an application-specific integrated circuit (ASIC), afield programmable gate array (FPGA), or another programmable logicaldevice, discrete gate or transistor logical device, or discrete hardwarecomponent. The processor can implement or execute each method, step, andlogic block diagram disclosed in one or more embodiments in thespecification. The general-purpose processor may be a microprocessor, orthe processor may be any conventional processor or the like. Steps ofthe method disclosed with reference to one or more embodiments in thespecification may be directly implemented by a hardware decodingprocessor, or implemented by a combination of hardware in the decodingprocessor and a software module. The software module may be located in amature storage medium in the art, such as a RAM, a flash memory, a ROM,a programmable ROM, an electrically erasable programmable memory, or aregister. The storage medium is located in the memory, and the processorreads information in the memory and completes the steps in the foregoingmethods in combination with hardware of the processor.

The electronic device may further perform the blockchain-basedadvertisement monitoring method shown in FIG. 3, and this is notdescribed in the specification again.

In addition to a software implementation, the electronic device in thespecification does not exclude other implementations, for example, alogic device or a combination of software and hardware. In other words,an entity executing the following processing procedure is not limited tothe logic units, and may also be hardware or logic devices.

The foregoing descriptions are merely exemplary embodiments of thespecification, but are not intended to limit the protection scope of thespecification. Any modification, equivalent replacement, or improvementmade within the spirit and principle of one or more embodiments of thespecification shall fall within the protection scope of one or moreembodiments of the specification.

The system, the apparatus, the module or the unit described in theforegoing embodiments can be specifically implemented by a computer chipor an entity or implemented by a product having a certain function. Atypical implementation device is a computer. Specifically, the computercan be, for example, a personal computer, a laptop computer, a cellularphone, a camera phone, a smartphone, a personal digital assistant, amedia player, a navigation device, an email device, a game console, atablet computer, a wearable device, or a combination of any of thesedevices.

The computer readable medium includes a persistent medium and anon-persistent medium, a removable medium and a non-removable medium,which may implement storage of information by using any method ortechnology. The information may be a computer readable instruction, adata structure, a module of a program or other data. Examples ofcomputer storage media include but are not limited to a phase changememory (PRAM), a static random access memory (SRAM), a dynamic randomaccess memory (DRAM), other type of random access memory (RAM), aread-only memory (ROM), an electrically erasable programmable read-onlymemory (EEPROM), a flash memory or other memory technology, a compactdisc read-only memory (CD-ROM), a digital versatile disc (DVD) or otheroptical storage, a cassette magnetic tape, tape and disk storage orother magnetic storage device or any other non-transmission media thatmay be configured to store information that a computing device canaccess. Based on the definition in the present disclosure, thecomputer-readable medium does not include transitory computer readablemedia (transitory media), such as a modulated data signal and a carrier.

The terms “include,” “comprise” and any other variants mean to cover thenon-exclusive inclusion. Thereby, the process, method, article, ordevice which include a series of elements not only include thoseelements, but also include other elements which are not clearly listed,or include the inherent elements of the process, method, article anddevice. Without further limitation, the element defined by a phrase“include one” does not exclude other same elements in the process,method, article or device which include the element.

The embodiments in this specification are all described in a progressivemanner, for same or similar parts in the embodiments, refer to theseembodiments, and descriptions of each embodiment focus on a differencefrom other embodiments. Especially, a system embodiment is basicallysimilar to a method embodiment, and therefore is described briefly; forrelated parts, reference may be made to partial descriptions in themethod embodiment.

What is claimed is:
 1. A blockchain-based advertisement monitoringmethod comprising: obtaining blockchain verification information of atarget advertisement from a blockchain, the blockchain verificationinformation comprising: identification information of an online oroffline playing device configured to play the target advertisement, afirst signature generated by the playing device encrypting unverifieddigest information of a screenshot image of the target advertisementwith a private key of the playing device, a second signature generatedby the playing device encrypting unverified identification informationof the playing device with the private key of the playing device, alength and a width of the screenshot image, and a third signaturegenerated by the playing device encrypting an unverifiedlength-and-width pair of the screenshot image with the private key ofthe playing device; decrypting the first signature, the secondsignature, and the third signature based on a public key of the playingdevice to obtain the unverified digest information, the unverifiedidentification information, and the unverified length-and-width pairrespectively; performing a first verification of whether the unverifiedidentification information is consistent with the identificationinformation of the playing device; performing a second verification ofwhether the unverified length-and-width pair matches the length and thewidth of the screenshot image; and when both the first verification andthe second verification are successful: obtaining an advertisementresource corresponding to the identification information of the playingdevice; performing a simulation playing operation on the advertisementresource and obtaining a plurality of images of the advertisementresource during the simulation playing; determining digest informationfor each of the plurality of images; determining whether the unverifieddigest information matches with the digest information of any of theplurality of images by performing fuzzy matching between the unverifieddigest information and the digest information of each of the pluralityof images; and in response to a match being found, confirming that anon-tampered advertisement resource has been played on the playingdevice.
 2. The method according to claim 1, wherein the first signaturecomprises a signed version of the unverified digest information of thescreenshot image of the target advertisement, wherein the unverifieddigest information is generated by applying an image hash algorithm tothe screenshot image, and the unverified digest information is signedwith a private key of the playing device.
 3. The method according toclaim 1, wherein the first signature comprises a signed version of theunverified digest information generated by applying a hash algorithm tothe following information: the screenshot image of the targetadvertisement and the identification information of the playing device;and the unverified digest information is signed with a private key ofthe playing device.
 4. The method according to claim 1, wherein thefirst signature comprises a signed version of the unverified digestinformation generated by applying a hash algorithm to the followinginformation: the screenshot image of the target advertisement, theidentification information of the playing device, and a timestamp of thescreenshot image; the unverified digest information is signed with aprivate key of the playing device, and the blockchain verificationinformation further comprises the timestamp of the screenshot image. 5.The method according to claim 1, wherein the obtaining an advertisementresource corresponding to the identification information of the playingdevice comprises: obtaining, based on the identification information ofthe playing device, the advertisement resource from a cloud platformstoring a mapping between the target advertisement and theidentification information of the playing device; and storing theobtained advertisement resource in a local storage space.
 6. The methodaccording to claim 1, wherein the unverified length-and-width pair ofthe screenshot image comprises a digest of a length-width dimension ofthe screenshot image of the target advertisement.
 7. The methodaccording to claim 1, wherein the performing a simulation playingoperation on the advertisement resource and obtaining a plurality ofimages of the advertisement resource comprises: playing theadvertisement resource; and obtaining, at every preset time interval, aplayed image of the advertisement resource to obtain one or moreto-be-matched played images.
 8. A system for blockchain-basedadvertisement monitoring, comprising one or more processors and one ormore non-transitory computer-readable memories coupled to the one ormore processors and configured with instructions executable by the oneor more processors to cause the system to perform operations comprising:obtaining blockchain verification information of a target advertisementfrom a blockchain, the blockchain verification information comprising:identification information of an online or offline playing deviceconfigured to play the target advertisement, a first signature generatedby the playing device encrypting unverified digest information of ascreenshot image of the target advertisement with a private key of theplaying device, a second signature generated by the playing deviceencrypting unverified identification information of the playing devicewith the private key of the playing device, a length and a width of thescreenshot image, and a third signature generated by the playing deviceencrypting an unverified length-and-width pair of the screenshot imagewith the private key of the playing device; decrypting the firstsignature, the second signature, and the third signature based on apublic key of the playing device to obtain the unverified digestinformation, the unverified identification information, and theunverified length-and-width pair respectively; performing a firstverification of whether the unverified identification information isconsistent with the identification information of the playing device;performing a second verification of whether the unverifiedlength-and-width pair matches the length and the width of the screenshotimage; and when both the first verification and the second verificationare successful: obtaining an advertisement resource corresponding to theidentification information of the playing device; performing asimulation playing operation on the advertisement resource and obtaininga plurality of images of the advertisement resource during thesimulation playing; determining digest information for each of theplurality of images; determining whether the unverified digestinformation matches with the digest information of any of the pluralityof images by performing fuzzy matching between the unverified digestinformation and the digest information of each of the plurality ofimages; and in response to a match being found, confirming that anon-tampered advertisement resource has been played on the playingdevice.
 9. The system of claim 8, wherein the first signature comprisesa signed version of the unverified digest information of the screenshotimage of the target advertisement, wherein the unverified digestinformation is generated by applying an image hash algorithm to thescreenshot image, and the unverified digest information is signed with aprivate key of the playing device.
 10. The system of claim 8, whereinthe first signature comprises a signed version of the unverified digestinformation generated by applying a hash algorithm to the followinginformation: the screenshot image of the target advertisement and theidentification information of the playing device; and the unverifieddigest information is signed with a private key of the playing device.11. The system of claim 8, wherein the obtaining an advertisementresource corresponding to the identification information of the playingdevice comprises: obtaining, based on the identification information ofthe playing device, the advertisement resource from a cloud platformstoring a mapping between the target advertisement and theidentification information of the playing device; and storing theobtained advertisement resource in a local storage space.
 12. The systemof claim 8, wherein the performing a simulation playing operation on theadvertisement resource and obtaining a plurality of images of theadvertisement resource comprises: playing the advertisement; andobtaining, at every preset time interval, a played image of theadvertisement resource to obtain one or more to-be-matched playedimages.
 13. A non-transitory computer-readable storage medium forblockchain-based advertisement monitoring, configured with instructionsexecutable by one or more processors to cause the one or more processorsto perform operations comprising: obtaining blockchain verificationinformation of a target advertisement from a blockchain, the blockchainverification information comprising: identification information of anonline or offline playing device configured to play the targetadvertisement, a first signature generated by the playing deviceencrypting unverified digest information of a screenshot image of thetarget advertisement with a private key of the playing device, a secondsignature generated by the playing device encrypting unverifiedidentification information of the playing device with the private key ofthe playing device, a length and a width of the screenshot image, and athird signature generated by the playing device encrypting an unverifiedlength-and-width pair of the screenshot image with the private key ofthe playing device; decrypting the first signature, the secondsignature, and the third signature based on a public key of the playingdevice to obtain the unverified digest information, the unverifiedidentification information, and the unverified length-and-width pairrespectively; performing a first verification of whether the unverifiedidentification information is consistent with the identificationinformation of the playing device; performing a second verification ofwhether the unverified length-and-width pair matches the length and thewidth of the screenshot image; and when both the first verification andthe second verification are successful: obtaining an advertisementresource corresponding to the identification information of the playingdevice; performing a simulation playing operation on the advertisementresource and obtaining a plurality of images of the advertisementresource during the simulation playing; determining digest informationfor each of the plurality of images; determining whether the unverifieddigest information matches with the digest information of any of theplurality of images by performing fuzzy matching between the unverifieddigest information and the digest information of each of the pluralityof images; and in response to a match being found, confirming that anon-tampered advertisement resource is, has been played on the playingdevice.
 14. The storage medium according to claim 13, wherein the firstsignature comprises a signed version of the unverified digestinformation of the screenshot image of the target advertisement, whereinthe unverified digest information is generated by applying an image hashalgorithm to the screenshot image, and the unverified digest informationis signed with a private key of the playing device.
 15. The storagemedium according to claim 13, wherein the first signature comprises asigned version of the unverified digest information generated byapplying a hash algorithm to the following information: the screenshotimage of the target advertisement and the identification information ofthe playing device; and the unverified digest information is signed witha private key of the playing device.
 16. The storage medium according toclaim 13, wherein the first signature comprises a signed version of theunverified digest information generated by applying a hash algorithm tothe following information: the screenshot image of the targetadvertisement, the identification information of the playing device, anda timestamp of the screenshot image; the unverified digest informationis signed with a private key of the playing device, and the blockchainverification information further comprises the timestamp of thescreenshot image.
 17. The storage medium according to claim 13, whereinthe obtaining an advertisement resource corresponding to theidentification information of the playing device comprises: obtaining,based on the identification information of the playing device, theadvertisement resource from a cloud platform storing a mapping betweenthe target advertisement and the identification information of theplaying device; and storing the obtained advertisement resource in alocal storage space.
 18. A non-transitory computer-readable storagemedium for blockchain-based advertisement monitoring, configured withinstructions executable by one or more processors to cause the one ormore processors to perform operations comprising: obtaining blockchainverification information of a target advertisement from a blockchain,the blockchain verification information comprising: identificationinformation of an online or offline playing device configured to playthe target advertisement, a first signature generated by the playingdevice encrypting unverified digest information of a screenshot image ofthe target advertisement with a private key of the playing device, asecond signature generated by the playing device encrypting unverifiedidentification information of the playing device with the private key ofthe playing device, a length and a width of the screenshot image, and athird signature generated by the playing device encrypting an unverifiedlength-and-width pair of the screenshot image with the private key ofthe playing device; decrypting the first signature, the secondsignature, and the third signature based on a public key of the playingdevice to obtain the unverified digest information, the unverifiedidentification information, and the unverified length-and-width pairrespectively; performing a first verification of whether the unverifiedidentification information is consistent with the identificationinformation of the playing device; performing a second verification ofwhether the unverified length-and-width pair matches the length and thewidth of the screenshot image; and when both the first verification andthe second verification are successful: obtaining an advertisementresource corresponding to the identification information of the playingdevice; playing the advertisement; obtaining, at every preset timeinterval, a played image of the advertisement resource to obtain aplurality of images of the advertisement resource; determining digestinformation for each of the plurality of images; determining whether theunverified digest information matches with the digest information of anyof the plurality of images; and in response to a match being found,confirming that a non-tampered advertisement resource has been played onthe playing device.
 19. A non-transitory computer-readable storagemedium for blockchain-based advertisement monitoring, configured withinstructions executable by one or more processors to cause the one ormore processors to perform operations comprising: obtaining blockchainverification information of a target advertisement from a blockchain,the blockchain verification information comprising: identificationinformation of an online or offline playing device configured to playthe target advertisement, a first signature generated by the playingdevice encrypting unverified digest information of a screenshot image ofthe target advertisement, wherein the unverified digest information isgenerated by applying a hash algorithm to the following information: thescreenshot image of the target advertisement, the identification of theplaying device, and a timestamp of the screenshot image, the timestampof the screenshot image, a second signature generated by the playingdevice encrypting unverified identification information of the playingdevice with the private key of the playing device, a length and a widthof the screenshot image, and a third signature generated by the playingdevice encrypting an unverified length-and-width pair of the screenshotimage with the private key of the playing device; decrypting the firstsignature, the second signature, and the third signature based on apublic key of the playing device to obtain the unverified digestinformation, the unverified identification information, and theunverified length-and-width pair respectively; performing a firstverification of whether the unverified identification information isconsistent with the identification information of the playing device;performing a second verification of whether the unverifiedlength-and-width pair matches the length and the width of the screenshotimage; and when both the first verification and the second verificationare successful: obtaining an advertisement resource corresponding to theidentification information of the playing device; performing asimulation playing operation on the advertisement resource and obtaininga plurality of images of the advertisement resource during thesimulation playing; determining digest information for each of theplurality of images; determining whether the unverified digestinformation matches with the digest information of any of the pluralityof images; and in response to a match being found, confirming that anon-tampered advertisement resource has been played on the playingdevice.